<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html><head>
<title>gfxsel</title>
</head><body>
<p>[<a href="mxdoc.htm">mainpage</a>]
[<a href="tags.htm">tags</a>]<br>
<h1><a name="gfxsel">module: gfxsel</a></h1><p><b>A graphics mode and theme selector</b><p>
This module implements a dialog to select and possibly change the
graphics mode an theme.
<p>
When a graphics mode/theme is selected the window sends a MX_GFXSEL_OK
event to the parent window.  The window can get information about the
selected graphics mode and theme using the mx_gfxsel_info() function.  The
information can also be modified by the parent window.  If the parent window
does not reply to the MX_GFXSEL_OK event (or replies with 0), then the
graphics mode/theme gets changed.  
(<a href="../include/depui/gfxsel.h">../include/depui/gfxsel.h</a>)
<p>
Pressing the OK button sends a MX_GFXSEL_OK event to the parent
        window and immediatly destroys the graphics mode window.  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)
<p>
Pressing the APPLY button sends a MX_GFXSEL_OK event to the
        parent window.  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)<p>Part of the <a href="depui.htm">depui</a> library.<ul><li>
<a name="MX_GFXSEL"><code>MX_GFXSEL</code></a>
<p>
<p><b>Graphics mode selector  </b><p>
(<a href="../include/depui/gfxsel.h">../include/depui/gfxsel.h</a>)<p></li>
<li>
<a name=" define mx_gfxsel(id)"><code># define mx_gfxsel(id)</code></a>
<p>
<p><b>Create a graphics mode and theme selector.  </b><p>
(<a href="../include/depui/gfxsel.h">../include/depui/gfxsel.h</a>)<p></li>
<li>
<a name="MX_GFXSEL_INFO"><code>MX_GFXSEL_INFO</code></a>
<p>
<p><b>Graphics mode selector information</b><p>
When a graphics mode has been selected by the dialog a MX_GFXSEL_OK
event is sent to the parent window.  Then mx_gfxsel_info() can be called to
get information about the graphics mode selected.  A pointer to this type is
returned.  
(<a href="../include/depui/gfxsel.h">../include/depui/gfxsel.h</a>)<p></li>
<li>
<a name="void mx_gfxsel_handler(MX_WIN* win)"><code>void mx_gfxsel_handler(MX_WIN* win)</code></a>
<p>
<p>Pressing the OK button sends a MX_GFXSEL_OK event to the parent
        window and immediatly destroys the graphics mode window.  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)
<p>Pressing the APPLY button sends a MX_GFXSEL_OK event to the
        parent window.  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)<p></li>
<li>
<a name="MX_GFXSEL* mx_gfxselwin(MX_GFXSEL* sel, size_t size, MX_HANDLER handler, int theid)"><code>MX_GFXSEL* mx_gfxselwin(MX_GFXSEL* sel, size_t size, MX_HANDLER handler, int theid)</code></a>
<p>
<p>mx_text_set(&sel->_res, "Resolution", -1, 0);  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)
<p>mx_text_set(&sel->_depth, "Depth", -1, 0);  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)
<p>mx_text_set(&sel->_driver, "Driver", -1, 0);  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)<p></li>
<li>
<a name="MX_GFXSEL_INFO* mx_gfxsel_info(const int idnum)"><code>MX_GFXSEL_INFO* mx_gfxsel_info(const int idnum)</code></a>
<p>
<p>When handling a MX_GFXSEL_OK event this function can be called to
get information about the graphics mode selected.   
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)

<p>This function should only be called while handling a MX_GFXSEL_OK event.  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)

<p>The specified id number must match the one of the gfxsel selector.  
(<a href="../include/depui/gfxsel.c">../include/depui/gfxsel.c</a>)<p></li>
</ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb  4 15:16:27 2007


</body></html>
